
#include "memory_manage.h"
#include <fstream>
#include <sstream>
using namespace std;
int L, M, N;
int main()
{
    ifstream file("C:\\Users\\N0ne\\Desktop\\12\\code\\input.txt");
    if (!file)
    {
        cout << "无法打开文件！" << endl;
        return 0;
    }
    string buf;
    getline(file, buf);
    istringstream iss(buf);
    iss >> L >> M >> N;
    memory_manage *manage = new memory_manage(L, M, N);
    while (getline(file, buf))
    {
        istringstream iss_line(buf);
        int a, b, c, d;
        iss_line >> a >> b >> c >> d;
        manage->push_procdure(a, b, c, d);
    }
    manage->run();
    return 0;
}
